/**
 * @Author: 健聪
 * @Description: 类与对象
 * @Date:2024/1/13
 */
import 'person.dart';

void main() {
  // var person = _Person();
  var person = Person();
  person.name = "Tom";
  person.age = 20;

  print(person.name);
  print(person.address);
  person.work();
}

// class Person {
//   String? name;
//   int? age;
//
//   // final关键字需要给初始值
//   final String address = "None";
//
//   void work() {
//     print("Name is $name, Age is $age, He is working...");
//   }
// // 方法不能重载
// // void work(int a){}
// }
